package cn.bugDance.infrastructure.persistent.dao;

import cn.bugDance.domain.award.model.entity.UserAwardRecordEntity;
import cn.bugDance.infrastructure.persistent.po.UserAwardRecord;
import cn.bugstack.middleware.db.router.annotation.DBRouterStrategy;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
@DBRouterStrategy(splitTable = true)
public interface IUserAwardRecordDao {
    void insert(UserAwardRecord userAwardRecord);

    void updateUserAwardRecordState(UserAwardRecord userAwardRecord);

    List<UserAwardRecord> queryUserRecords(UserAwardRecord userAwardRecordReq);

    List<UserAwardRecord> queryUserRecordsByDate(@Param("activityId") Long activityId, @Param("date") Date nowDate);
}
